<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Register Page</title>
        <script type="text/javascript" src="./js/register.js"></script>
    </head>
    <body>
        <form id="register" method="post" action="register.do?action=register">
            <fieldset>
                <legend>Register</legend>

                <label for="email">Email:</label>
                <input type="text" id="email" name="email" onblur="validate()"/>
                <span id="usermsg"></span><br/>

                <label for="password">Password:</label>
                <input type="password" id="password" name="password"/><br/>

                <label for="password">Comfirm Password:</label>
                <input type="password" id="password2" name="password2" onblur="comfirmPassword()"/>
                <span id="comfirmpwd"></span><br/>

                <label for="firstname">First Nmae:</label>
                <input type="text" id="firstname" name="firstname"/><br/>

                <label for="lastname">Last Nmae:</label>
                <input type="text" id="lastname" name="lastname"/><br/>

                <label for="gender">Gender:</label>
                <input type="radio" id="gender" name="gender" value = "male">Male
                <input type="radio" id="gender" name="gender" value = "female">Female<br>

                <input type="submit" value="register">
                <input type="button" value="cancel" onclick="location.href='login.jsp'">
            </fieldset>
        </form>    
    </body>
</html>
